// use localStorage to store the authority info, which might be sent from server in actual project.
export function getAuthority() {
  return localStorage.getItem('bear-admin') || 'admin';
}

export function setAuthority(authority) {
  return localStorage.setItem('bear-admin', authority);
}

export function getAuthToken() {
  return localStorage.getItem('bear-admin-auth-token');
}

export function setAuthToken(token) {
  return localStorage.setItem('bear-admin-auth-token', token);
}
